package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ChargeOrdertypeLogMapper;
import com.whq.entity.ChargeOrdertypeLog;
import com.whq.service.ChargeOrdertypeLogService;

@Service(value = "tdChargeOrdertypeLogService")
public class ChargeOrdertypeLogServiceImpl implements ChargeOrdertypeLogService {

    @Autowired
    private ChargeOrdertypeLogMapper<ChargeOrdertypeLog>tdChargeOrdertypeLogMapper;
    
    @Override
    public Integer insertSelective(ChargeOrdertypeLog tdChargeOrdertypeLog) throws Exception {
           return this.tdChargeOrdertypeLogMapper.insertSelective(tdChargeOrdertypeLog);
        }

    @Override
    public Integer insertBatch(List<ChargeOrdertypeLog> tdChargeOrdertypeLog) throws Exception {
           return this.tdChargeOrdertypeLogMapper.insertBatch(tdChargeOrdertypeLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdChargeOrdertypeLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdChargeOrdertypeLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ChargeOrdertypeLog tdChargeOrdertypeLog) {
           return this.tdChargeOrdertypeLogMapper.updateByPrimaryKeySelective(tdChargeOrdertypeLog);
    }

    @Override
    public ChargeOrdertypeLog findById(Object id) {
           return (ChargeOrdertypeLog) this.tdChargeOrdertypeLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ChargeOrdertypeLog> selectByCondition(ChargeOrdertypeLog tdChargeOrdertypeLog) {
           return (List<ChargeOrdertypeLog>) this.tdChargeOrdertypeLogMapper.selectByCondition(tdChargeOrdertypeLog);
    }

    @Override
    public Integer selectCountByCondition(ChargeOrdertypeLog tdChargeOrdertypeLog) {
           return  this.tdChargeOrdertypeLogMapper.selectCountByCondition(tdChargeOrdertypeLog);
    }

}
